package com.example.demo.controller;

import com.example.demo.entity.Dondxi;
import com.example.demo.impl.Objectlmpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/Object")
public class Objectcontroller {
    @Autowired
    Objectlmpl objectlmpl;
    @GetMapping("/userobject")
    public List<Dondxi> userobject(String username)
    {
        return objectlmpl.userobject(username);
    }
}
